package com.ss.android.push.sswo;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class SswoReceiver extends BroadcastReceiver {
    public SswoReceiver() {

    }

    public void onReceive(Context arg3, Intent arg4) {
        try {
            String v0_1 = arg4.getAction();
            if("android.intent.action.SCREEN_OFF".equals(v0_1)) {
                SswoManager.inst(arg3).startOffActivity();
                return;
            }

            if(!"android.intent.action.USER_PRESENT".equals(v0_1) && !"android.intent.action.SCREEN_ON".equals(v0_1)) {
                return;
            }

            SswoManager.inst(arg3).destroyOffActivity();
        }
        catch(Throwable v0) {
            v0.printStackTrace();
        }
    }
}

